#ifndef _WINDOW_H_
#define _WINDOW_H_

#include <windows.h>
#include "game.h"
#include "types.h"

class window
{
public:
	window(xml_node& _node);
	~window();

	void close();

	HWND hwnd(){return m_hwnd;}
	u32 width(){return m_width;}
	u32 height(){return m_height;}
private:
	static LRESULT CALLBACK wnd_proc(HWND _hwnd,u32 _msg,WPARAM _wparam,LPARAM _lparam);
	HWND m_hwnd;
	u32 m_width;
	u32 m_height;
	bool m_fullscreen;
};

#endif